package net.zcy.springbootmybatis.output;

import java.io.Serializable;

/**
 * 请求统一响应信息
 */
public class Result<T> implements Serializable {

    private static final long serialVersionUID = 3556279739463712608L;

    private Integer code;  //响应码

    private String msg;  //提示信息

    private T data;  //响应具体结果

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
